/*
 * @Description: 交易类型-解冻
 * @Author: yingying.fan
 * @Date: 2019-03-18 13:38:28
 * @Last Modified by: yingying.fan
 * @Last Modified time: 2019-03-18 15:24:55
 */
<script>
import BaseConsumeItem from './BaseConsumeItem'
import { UNFREEZON_MEAL, UNFREEZON_PAY_BUS_OFF } from '../../../consumedetail/constants/TradeDetailType.js'
export default {
  name: 'ConsumeUnfreezonItem',
  extends: BaseConsumeItem,
  watch: {
    tradeDetailType(newValue, oldValue) {
      switch (newValue) {
        case UNFREEZON_MEAL:
          this.iconUrl = require('../../assets/unfreezon.png')
          this.tradeText = '员工餐金额解冻'
          break
        case UNFREEZON_PAY_BUS_OFF:
          this.iconUrl = require('../../assets/unfreezon.png')
          this.tradeText = this.cardName + '解冻'
          break
      }
    }
  },
  methods: {
    // 交易失败
    parseWhenTradeFailure() {

    },
    // 交易退款
    parseWhenTradeRefund() {

    },
    // 交易成功
    // parseWhenTradeSuccess() {
    //   this.payFeeDesc = '+' + this.payPrice
    // },
    // 交易中
    parseWhenTrading() {

    }
  }
}
</script>
